package com.xiweicheng;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by Administrator on 17/4/26.
 */
@Component
public class HystrixClientFallback implements StoreClient {

    @Override
    public Object home() {
        return "[fallback] home";
    }

    @Override
    public RespBody getStores() {
        return RespBody.builder().build();
    }

    @Override
    public RespBody getStore(@PathVariable("storeId") Long storeId) {
        return RespBody.builder().build();
    }
}
